
export default {
  page:(data:any)=>{return window.$http.post('/api/userprms/role/page', data)},
  create:(data:any)=>{return window.$http.post('/api/userprms/role/create', data)},
  delete:(data:any)=>{return window.$http.post('/api/userprms/role/delete', data)},
  update:(data:any)=>{return window.$http.post('/api/userprms/role/update', data)},
  get:(id:any)=>window.$http.get(`/api/userprms/role/get/${id}`),

  prmsPage:(data:any)=>window.$http.post('/api/userprms/role/prms/page', data),
  prmsRegain:(data:any)=>window.$http.post('/api/userprms/role/prms/regain', data),
  prmsAvailable:(data:any)=>window.$http.post('/api/userprms/role/prms/available', data),
  prmsAllocate:(data:any)=>window.$http.post('/api/userprms/role/prms/allocate', data),
  prmsDisable:(data:any)=>window.$http.post('/api/userprms/role/prms/disable', data),
  prmsAllocated:(data:any)=>window.$http.post('/api/userprms/role/prms/allocated', data),

  allocUser:(data:any)=>{return window.$http.post('/api/userprms/role/alloc_user', data)},
  alcedUser:(data:any)=>{return window.$http.post('/api/userprms/role/alced_user', data)},
  allocPrms:(data:any)=>{return window.$http.post('/api/userprms/role/alloc_prms', data)},
  alcedPrms:(data:any)=>{return window.$http.post('/api/userprms/role/alced_prms', data)},
}